#include <iostream>
using namespace std;
#include <vector>

int main(int argc, const char *argv[]){
    vector<char> my_vect;
    for(int i = 0; i < 7; i++){
        my_vect.push_back('A'+i);
    }
    vector<char>::iterator my_iter;
    while(!my_vect.empty()){
        // 输出
        for(my_iter = my_vect.begin(); my_iter != my_vect.end(); my_iter++){
            cout << *my_iter;
        }
        cout << endl;
        // 删除头部元素
        my_iter = my_vect.begin(); // 需要重新将迭代器定位到向量开头
        my_vect.erase(my_iter);
    }
    return 0;
}